libxl: Allocate memory for strings in libxl_device_disk
authorMarek Marczykowski <marmarek@mimuw.edu.pl>
Mon, 27 Jun 2011 16:24:50 +0000 (17:24 +0100)
committerMarek Marczykowski <marmarek@mimuw.edu.pl>
Mon, 27 Jun 2011 16:24:50 +0000 (17:24 +0100)
commit21e104aab3d138706d3a9e674ff6ad296419bf61
tree2f825b59fbb03c3fc6d8b7d76aaaeb929ea60853
parent797290bf9d96b5c6a6a7b0d6a1aaf23d8d35acb1
libxl: Allocate memory for strings in libxl_device_disk

Memory for strings in libxl_device_disk must be allocated from outside of
libxl__gc to not be freed at the end of function (by libxl__free_all).

Fixes xl block-detach

Signed-off-by: Marek Marczykowski <marmarek@mimuw.edu.pl>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_utils.c